<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础</title>
</head>

<body>
    <!-- {{msg}}没用 -->
    <div id="app">
        <!-- h2中内容全部替换 -->
        <h2 v-text="msg + '!'">123</h2>
        <!-- 插值表达式 -->
        <h2>{{msg}}123</h2>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <script>
        // js框架
        // dom操作
        // 响应式数据
        var app = new Vue({
            el: "#app",
            data: {
                msg: "aa"
            }
        })
    </script>
</body>

</html>